//
//  collect_shop_Controller.m
//  pmmSS
//
//  Created by Mac book on 2017/9/22.
//  Copyright © 2017年 WTFSSD. All rights reserved.
//

#import "collect_shop_Controller.h"
#import "collect_shop_Cell.h"

#import "Shop_Detail_Controller.h"

@interface collect_shop_Controller ()

@end

@implementation collect_shop_Controller

- (void)viewDidLoad {
    [super viewDidLoad];

    [self setTableView:self.tableView];
    // Do any additional setup after loading the view.
}

-(void)setTableView:(UITableView *)tableView{


    tableView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);

    tableView.rowHeight = autoScaleH(71) ;

    [tableView registerClass:[collect_shop_Cell class] forCellReuseIdentifier:@"collect_shop_Cell"];

}

-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView{

    return  4 ;
}

-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{

    return 1;


}

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

    static NSString *cellId = @"collect_shop_Cell";

    collect_shop_Cell * cell  = [tableView dequeueReusableCellWithIdentifier:cellId ];

    cell.selectionStyle = UITableViewCellSelectionStyleNone;

    return cell;



}
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

    Shop_Detail_Controller *vc = [[Shop_Detail_Controller alloc] init ];

    [self.navigationController pushViewController:vc animated:YES];

}
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section{

    return autoScaleH(1);

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
